import request from '@/utils/request'

// 查询设备列表
export function listDeviceImport(query) {
  return request({ url: '/erecord/deviceImport/list', method: 'get', params: query })
}

// 查询设备详细
export function getDeviceImport(id) {
  return request({ url: '/erecord/deviceImport/' + id, method: 'get' })
}

// 新增设备
export function addDeviceImport(data) {
  return request({ url: '/erecord/deviceImport', method: 'post', data: data })
}

// 修改设备
export function updateDeviceImport(data) {
  return request({ url: '/erecord/deviceImport', method: 'put', data: data })
}

// 删除设备
export function delDeviceImport(id) {
  return request({ url: '/erecord/deviceImport/' + id, method: 'delete' })
}
export function importData(data) {
  return request({ url: '/erecord/deviceImport/importData', method: 'post', data: data })
}
